package com.fengba.nanzhi.utils;

import android.content.Context;

import org.json.JSONException;
import org.json.JSONObject;

public class FX_SignInUtil {


    /*
    *判断手机号是否为空
     */
    public static boolean switchAccount(Context context){
        String account = null;
        try {
            Object user_info = Preferences.getParam(context, "user_info", "");
            JSONObject myJson = null;
            myJson = new JSONObject(user_info.toString());
            account = myJson.get("account").toString();
        } catch (JSONException e) {
            e.printStackTrace();
        }
        if (account==null)
        {
            return true;
        }else
        {
            return false;
        }

    }
}
